package unipush

import (
	"cgs-server/server/model"
	"go.mongodb.org/mongo-driver/bson/primitive"
)

type PushLog struct {
	Id               string `json:"id" bson:"id"`
	NoticeRelationId string `json:"notice_relation_id" bson:"notice_relation_id"'`
	ReturnMsg        string `json:"return_msg" bson:"return_msg"`

	model.TenantModel `json:"-,inline" bson:",inline"`
}

func (w *PushLog) SetId(id primitive.ObjectID) {
	w.Id = id.Hex()
}

func (w *PushLog) GetId() string {
	return w.Id
}
